<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
 <head>
  <title>后台管理系统</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="${pageContext.request.contextPath}/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="${pageContext.request.contextPath}/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
   <link href="${pageContext.request.contextPath}/assets/css/main-min.css" rel="stylesheet" type="text/css" />
 </head>
 <body>

  <div class="header">
    <div class="dl-log">欢迎您，<span class="dl-log-user">${sessionScope.user.userName }(${user.roleInfo.roleName })</span><a href="${pageContext.request.contextPath}/user/logout.do" title="退出系统" class="dl-log-quit">[退出]</a>
    </div>
  </div>
   <div class="content">
    <div class="dl-main-nav">
      <div class="dl-inform"><div class="dl-inform-title"></div></div>
      <ul id="J_Nav"  class="nav-list ks-clear">
      	<c:forEach items="${requestScope.rightList}" var="mainMenu" varStatus="st">
      		<c:if test="${st.count==1 }">
      			<li class="nav-item dl-selected"><div class="nav-item-inner nav-home">${mainMenu.text}</div></li>
      		</c:if>
      		<c:if test="${st.count!=1 }">
      			<li class="nav-item dl-selected"><div class="nav-item-inner nav-order">${mainMenu.text}</div></li>
      		</c:if>
      	</c:forEach>	
      </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
   </div>
  <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/jquery-1.8.1.min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/bui-min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/common/main-min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/config-min.js"></script>
  <script>
    BUI.use('common/main',function(){
      var config = ${requestScope.childrenJson};
      new PageUtil.MainPage({
        modulesConfig : config
      });
    });
  </script>
 </body>
</html>